-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ffsync: Update syncstorage-rs to v0.17.4 #6228
base: master
Are you sure you want to change the base?
Conversation
f52e0ea
to
7b0b200
Compare
hey @hgy59, I was having another go at this further to the challenges of upgrading diesel in #6187. Looking deeper at the errors originally we had this:
If we focus on the Line 29 in 2af6c9c
So the next thing I did was set the other one in f52e0ea and this revealed a new error:
This concurs with what I see in the mysqlclient-sys build code. So the next strategy was to use the
So based on this it seems to be trying to dynamically create the bindings for libmysqlclient Alternately, if This is all a bit of guesswork on my part but let me know if I may be onto something. |
@hgy59, further to the research I did above, I was looking more into the
Looking into that variable mentioned at the end I find it listed in the readme for the
Now in that repo there is an issue rust-lang/rust-bindgen#1949 which advises that:
As such, it doesn't support gcc which is why we need to provide clang for it to work. I've been looking at our wiki and it's not clear to me how this would be done. Searching the codebase I only come across this mention of clang in the
I don't have a firm grasp on this so I would need some guidance in getting this up and running. EDIT: After exploring the option of upgrading libmysqlclient, I now understand why it may not be straightforward. The Makefile points to MySQL Connector/C, with the latest version being 6.1.11. Upgrading beyond this would require switching to a different source, MySQL Connector/C++, which is currently at version 8.4.0. Since it uses a different programming language, this would likely involve creating a new package rather than performing a simple upgrade. |
Hoping not to muddy the water but is that libclang from an host or target perspective? i.e. using clang to build? or to link against its library at cross-compile time? From the log snipets above that isn't clear to me. |
I really don't know how to answer that as this is a bit new for me. In the same readme for buildgen i do see this line:
Other than that, is there a specific command or something in the codebase which would suggest which use case? |
Just saw a comment in https://github.com/mozilla-services/syncstorage-rs/blob/master/syncstorage-mysql/Cargo.toml
|
This is now obsolete with the bugfix for mysql_config in #6218 see cross/mysql-connector-c/Makefile Instead of defining # let it find mysql_config to find version and library path of libmysqlclient
ENV += PATH=$$PATH:$(STAGING_INSTALL_PREFIX)/bin |
7b0b200
to
2650aa6
Compare
Description
This PR includes the following:
Fixes #
Checklist
all-supported
completed successfullyType of change